package main

import (
    "github.com/gin-gonic/gin"
    "learn/router"
)

func main() {
    gin.SetMode(gin.DebugMode) //设置debug模式
    r := gin.Default()
    router.InitRouter(r)
    r.Run(":8080") // listen and serve on 0.0.0.0:8080
}